package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author shuiyun
 * @program gateway
 * @description 区域查询响应实体
 * @date 2022-05-04 10:14
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Message(value = JT808.查询区域或线路数据应答0x0608)
public class T0608 extends JTMessage {

    @FieldValue(type = DataType.BYTE,desc = "查询类型")
    private Integer type;

    @FieldValue(type = DataType.LIST,lengthSize = 4,desc = "圆形区域",checkMethod = {"type","!=","1"})
    private List<T8600> circularArea;

    @FieldValue(type = DataType.LIST,lengthSize = 4,desc = "矩形区域",checkMethod = {"type","!=","2"})
    private List<T8602> rectangleArea;

    @FieldValue(type = DataType.LIST,lengthSize = 4,desc = "多边形区域",checkMethod = {"type","!=","3"})
    private List<T8604> polygonArea;

    @FieldValue(type = DataType.LIST,lengthSize = 4,desc = "路线区域",checkMethod = {"type","!=","4"})
    private List<T8606> routeArea;


}
